
public class Sobrecarga {

	int soma (int x, int y){
		return x + y;
	}
	
	double soma (double x, double d){
		return x + d;
	}
	
	int soma (int x, int y, int z){
		return x + y + z;
	}
	
	public static void main (String args[]){
		
		Sobrecarga s = new Sobrecarga();
		int r = s.soma(10, 10);
		int r2 = s.soma(10, 10, 20);
		double r3 = s.soma(10.5, 0.5);
		
		System.out.println(r);
		System.out.println(r2);
		System.out.println(r3);
		
	}
}
